package com.tyros.common.kit.web.model;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author zhangshuaiyin
 * @date 2022/1/15 21:59
 */
@Data
@Accessors(chain = true)
public class PageResult<R> implements Serializable {
    private Long total;
    private List<R> records;

    public PageResult(Long total, List<R> records) {
        this.total = total;
        this.records = records;
    }
}
